package com.example.demo.controller;

import lombok.Data;
import org.springframework.stereotype.Component;

import javax.xml.transform.Result;

/**
 * Created by Administrator on 2018\11\13 0013.
 */
@Component
@Data
public final class ResultMap {

    private String result;
    private String message;

    public ResultMap success(){
        this.result="success";
        return this;
    }

    public ResultMap fail(){
        this.result="fail";
        return this;
    }

    public ResultMap message(String message){
        this.message = message;
        return this;
    }
}
